package com.kgdev.cweb.entities.prod.owned.order;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.kgdev.cweb.entities.prod.managed.Order;
import com.kgdev.cweb.entities.pub.PlateArticle;
import com.kgdev.cweb.entities.sys.Image;

/**
 * The persistent class for the pattern database table.
 * 
 */
@Entity
@Table(name = "prod_order_pttrn")
public class OrderPattern implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "order_id")
	private Integer orderId;
	
	@OneToOne(optional=false, mappedBy="orderPattern")
	private Order order;

	@ManyToOne
	@JoinColumn(name="logotype_id")
	private Image logotype;

	@ManyToOne
	@JoinColumn(name="plate_article_id")
	private PlateArticle plateArticle;

	@Column(name = "inscription", length = 45)
	private String inscription;

	@Column(name = "has_frame")
	private Boolean hasFrame;
	
	public OrderPattern() {
	}
	
	public String getInscription() {
		return this.inscription;
	}

	public Image getLogotype() {
		return logotype;
	}

	public Order getOrder() {
		return order;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public PlateArticle getPlateArticle() {
		return plateArticle;
	}

	public Boolean isHasFrame() {
		return hasFrame;
	}

	public void setHasFrame(Boolean hasFrame) {
		this.hasFrame = hasFrame;
	}

	public void setInscription(String inscription) {
		this.inscription = inscription;
	}

	public void setLogotype(Image logotype) {
		this.logotype = logotype;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public void setPlateArticle(PlateArticle plateArticle) {
		this.plateArticle = plateArticle;
	}


}